/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tracksuite.bussiness;

import tracksuite.integration.GenericDAO;
import tracksuite.integration.GenericTO;

/**
 *
 * @author mfloriano
 */
public abstract class GenericBO <DAO extends GenericDAO, TO extends GenericTO> {

    private DAO dao;
    
    public TO insert(TO to){
        return (TO) dao.insert(to);
    }
    
    public TO update(TO to){
        return (TO) dao.update(to);
    }
    
    public boolean delete(TO to){
        return dao.delete(to);
    }
    
}
